//
//  HACDemoOneCell.m
//  HACDispatcher
//
//  Created by J.Cheng on 2019/5/14.
//  Copyright © 2019 Happy. All rights reserved.
//

#import "HACDemoOneCell.h"

@implementation HACDemoOneCellModel

- (CGFloat)cellHeight {
    if (self.age <= 15) {
        return 64;
    } else {
        return 96;
    }
}

- (NSString *)reusableIdentifier {
    if ([self.name containsString:@"abc"]) {
        return @"abc";
    }
    return NSStringFromClass([HACDemoOneCell class]);
}

@end

@implementation HACDemoOneCell

- (void)configCellModel:(HACDemoOneCellModel *)cellModel {
    self.textLabel.textColor = [UIColor redColor];
    self.textLabel.text = cellModel.name;
}


@end
